<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
  <title>修改动漫信息</title>
  <link rel="stylesheet" type="text/css" href="./bootstrap/css/bootstrap.min.css">
</head>
<?php
$row=$data['cartoon'];
?>
<body>
<center><h2>请修改动漫信息</h2></center>
<form class="form-horizontal" method="post" action="admin.php?c=cartoon&m=updatecartoon" enctype="multipart/form-data">
   <input type="hidden" name="cid" value="<?php echo $row['cid']; ?>">
<div class="form-group">
    <label for="inputName3" class="col-md-3 control-label">动漫名称</label>
    <div class="col-md-6">
      <input type="text" class="form-control" id="inputName3" placeholder="name" name="cartoonname" value="<?php echo $row['cartoonname'];?>">
    </div>
  </div>

  <div class="form-group">
    <label for="inputType3" class="col-md-3 control-label">动漫类型</label>
    <div class="col-md-6">
      <select class="form-control" name="tid">
        <option value="1"<?php if ($row['tid']==1){
        echo "selected";}?>>日本</option>
    <option value="2"<?php if ($row['tid']==2){
        echo "selected";}?>>大陆</option>
    <option value="3"<?php if ($row['tid']==3){
        echo "selected";}?>>欧美</option>
    <option value="4"<?php if ($row['tid']==4){
        echo "selected";}?>>其他</option>
    </select>
    </div>
  </div>

  <div class="form-group">
    <label for="inputImg3" class="col-md-3 control-label">动漫海报</label>
    <div class="col-md-6">
       <input type="file" id="inputImg3" name="pic">
       原动漫海报:<img src="./posters/<?php echo $row['pic'];?>" width="80" height="80" alt="">
    </div>
  </div>

  <div class="form-group">
    <label for="inputIntro3" class="col-md-3 control-label">动漫简介</label>
    <div class="col-md-6">
      <textarea class="form-control" rows="3" id="inputIntro3" name="intro"><?php echo $row['intro']?></textarea>
    </div>
  </div>



 <div class="form-group">
    <label for="inputAdress3" class="col-md-3 control-label">动漫下载地址</label>
    <div class="col-md-6">
      <input type="text" class="form-control" id="inputAdress3" placeholder="address" name="address" value="<?php echo $row['address'];?>">
    </div>
  </div>

<div class="form-group">
    <div class="col-sm-offset-5 col-md-5">
      <button type="submit" class="btn btn-default" value="修改">修改</button>
    </div>
  </div>

</form>
</body>
</html>